package io.renren.modules.sys.dao;


import io.renren.modules.sys.entity.MerchantEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sys.entity.MerchantVOEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 代理商商户
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-11 10:46:27
 */
@Mapper
public interface MerchantDao extends BaseMapper<MerchantEntity> {
    List<MerchantVOEntity> getMerchant(@Param("name") String name, @Param("userid") Long userid,
                                       @Param("address") String address, @Param("role") String role,
                                       @Param("ids") String ids, @Param("currPage") Integer currPage,
                                       @Param("pageSize") Integer pageSize);
    int queryListcount(@Param("name") String name, @Param("userid") Long userid,
                       @Param("address") String address,@Param("role") String role,@Param("ids") String ids);


    List<MerchantVOEntity> getMerchantList(@Param("name") String name, @Param("userid") Long userid,
                                       @Param("address") String address, @Param("currPage") Integer currPage,
                                       @Param("pageSize") Integer pageSize);
    int querycount(@Param("name") String name, @Param("userid") Long userid,
                       @Param("address") String address);

    MerchantEntity infoByUserid(@Param("id") Integer id);

    int queryLineCodeNum(@Param("userid")Integer userid);

}
